public class Polynomial {
   
    private ArrayList<Monomial> terms;
    
    public void addMonomial(Monomial monomial) {
        terms.add(monomial);      
    }
    
    public ArrayList<Monomial> getTerms() {
      return this.terms;
    }
    
    public void setTerms(ArrayList<Monomial> terms) {
      this.terms = terms;
    }
    
  
}
